import { AxiosRequestConfig } from "axios"
import request from "./request"

//对post和get请求再单独封装
// 封装post请求
export function post(url: string, data: any) {
    return request.post(url, data )
}
// 封装get请求
export function get(url: string, params: AxiosRequestConfig<any> | undefined) {
    return request.get(url,  params )
}
